package com.jsu.client;


import org.example.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient("wscc-service-user")
public interface UserClient {

    /**
     * 新增用户点赞
     */
    /*@PostMapping("/user/addActivityLikes")
    ResponseResult addActivityLikes(Integer activityId,Integer userId);

    @PostMapping("/user/addAgendaLikes")
    ResponseResult addAgendaLikes(Integer agendaId,Integer userId);*/

    /**
     * 拿到用户直播发言，返回得到1为可以在直播间发言，0为禁止直播间发言
     * @param userId
     * @return
     */
    @GetMapping("/user/getLiveState")
    ResponseResult getLiveState(Integer userId);

    @GetMapping("/user/getEmail")
    ResponseResult getEmail(Integer userId);

    @GetMapping("/user/getAllUser")
    ResponseResult getAllUser();

}
